import type { ProColumns } from '@ant-design/pro-table';
import type { ColumnsType } from 'antd/es/table';
export type columnsDataType = {};
const columnsData: ProColumns<columnsDataType>[] = [
  // 配置搜索框
  {
    title: '名称',
    dataIndex: 'processDefinitionName',
    hideInTable: true,
  },
  {
    title: '标识编码',
    dataIndex: 'processDefinitionKey',
    hideInTable: true,
  },
  // 表头
  {
    title: '名称',
    dataIndex: 'processDefinitionName',
    hideInSearch: true,
    width: 150,
  },
  {
    title: '标识编码',
    dataIndex: 'processDefinitionKey',
    hideInSearch: true,
    width: 150,
  },
  {
    title: '业务ID',
    dataIndex: 'businessKey',
    hideInSearch: true,
    width: 150,
  },
  {
    title: 'ID',
    dataIndex: 'id',
    hideInSearch: true,
    width: 200,
  },
  {
    title: '开始时间',
    dataIndex: 'startTime',
    hideInSearch: true,
    width: 150,
  },
  {
    title: '操作',
    dataIndex: 'action',
    hideInSearch: true,
    fixed: 'right',
    width: 100,
  },
];

// 表格每行数据类型
export type DataType = {
  username: string;
  userId: string;
  orgId: string;
};

export const usrColumns: ColumnsType<DataType> = [
  {
    title: '姓名',
    dataIndex: 'name',
  },
  {
    title: 'ID',
    dataIndex: 'id',
  },
  {
    title: '创建时间',
    dataIndex: 'createTime',
  },
  {
    title: '结束时间',
    dataIndex: 'endTime',
  },
];

export default columnsData;
